package com.fanyouzhao.ehome.util;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

// 响应工具类
public class ResponseUtil {

    public static void send(HttpServletResponse response,String jsonString) throws IOException {
        PrintWriter writer = response.getWriter();
        writer.print(jsonString);
        writer.flush();
        writer.close();
    }
}
